package com.cloud.pora.mrm.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.jboss.seam.annotations.Name;


/**
 * The persistent class for the meeting_room_booking database table.
 * 
 */
@Name("meetingRoomBooking")
@Entity
@Table(name="meeting_room_booking")
public class MeetingRoomBooking implements Serializable {
	private static final Long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="mrb_id", unique=true, nullable=false)
	private Long mrbId;

	@Column(name="booking_user_id", length=45)
	private String bookingUserId;

	@Column(name="booking_user_tel", length=45)
	private String bookingUserTel;

	@Column(name="insert_id", length=45)
	private String insertId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="insert_time", nullable=false)
	private Date insertTime;

	@Column(name="meeting_detail", length=200)
	private String meetingDetail;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="meeting_end_time", nullable=false)
	private Date meetingEndTime;

	@Column(name="meeting_memo", length=200)
	private String meetingMemo;

	@Column(name="meeting_person", length=200)
	private String meetingPerson;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="meeting_start_time", nullable=false)
	private Date meetingStartTime;

	@Column(name="meeting_title", length=45)
	private String meetingTitle;

	@Column(name="meeting_type", length=45)
	private String meetingType;

	@Column(name="update_id", length=45)
	private String updateId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time", nullable=false)
	private Date updateTime;

	//bi-directional many-to-one association to MeetingRoom
	@ManyToOne
	@JoinColumn(name="mr_id", nullable=false)
	private MeetingRoom meetingRoom;

	public MeetingRoomBooking() {
	}

	public Long getMrbId() {
		return this.mrbId;
	}

	public void setMrbId(Long mrbId) {
		this.mrbId = mrbId;
	}

	public String getBookingUserId() {
		return this.bookingUserId;
	}

	public void setBookingUserId(String bookingUserId) {
		this.bookingUserId = bookingUserId;
	}

	public String getBookingUserTel() {
		return this.bookingUserTel;
	}

	public void setBookingUserTel(String bookingUserTel) {
		this.bookingUserTel = bookingUserTel;
	}

	public String getInsertId() {
		return this.insertId;
	}

	public void setInsertId(String insertId) {
		this.insertId = insertId;
	}

	public Date getInsertTime() {
		return this.insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

	public String getMeetingDetail() {
		return this.meetingDetail;
	}

	public void setMeetingDetail(String meetingDetail) {
		this.meetingDetail = meetingDetail;
	}

	public Date getMeetingEndTime() {
		return this.meetingEndTime;
	}

	public void setMeetingEndTime(Date meetingEndTime) {
		this.meetingEndTime = meetingEndTime;
	}

	public String getMeetingMemo() {
		return this.meetingMemo;
	}

	public void setMeetingMemo(String meetingMemo) {
		this.meetingMemo = meetingMemo;
	}

	public String getMeetingPerson() {
		return this.meetingPerson;
	}

	public void setMeetingPerson(String meetingPerson) {
		this.meetingPerson = meetingPerson;
	}

	public Date getMeetingStartTime() {
		return this.meetingStartTime;
	}

	public void setMeetingStartTime(Date meetingStartTime) {
		this.meetingStartTime = meetingStartTime;
	}

	public String getMeetingTitle() {
		return this.meetingTitle;
	}

	public void setMeetingTitle(String meetingTitle) {
		this.meetingTitle = meetingTitle;
	}

	public String getMeetingType() {
		return this.meetingType;
	}

	public void setMeetingType(String meetingType) {
		this.meetingType = meetingType;
	}

	public String getUpdateId() {
		return this.updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public MeetingRoom getMeetingRoom() {
		return this.meetingRoom;
	}

	public void setMeetingRoom(MeetingRoom meetingRoom) {
		this.meetingRoom = meetingRoom;
	}

}